<template>
  <div class="layout-container">
    <el-container class="home-container">
      <el-aside width="auto" class="aside">
        <common-aside></common-aside>
      </el-aside>
      <el-container>
        <el-header height="60px">
          <common-header></common-header>
        </el-header>
        <el-main class="main">
          <router-view></router-view>
        </el-main>
      </el-container>
    </el-container>
  </div>
</template>

<script>
import CommonHeader from '@/components/CommonHeader.vue'
import CommonAside from '@/components/CommonAside.vue'

export default {
  name: 'FarmerHomeView',
  components: {
    CommonHeader,
    CommonAside
  }
}
</script>

<style scoped>
.layout-container {
  height: 100%;
}

.home-container {
  height: 100%;
}

.el-header {
  padding: 0;
}

.el-main {
  padding: 0;
  background-color: #f0f2f5;
}
</style>
